
<%@page import="uade.distribuidas.repo.dto.ItemSolicitudDTO"%>
<%@page import="java.util.List"%>
<%@page import="uade.distribuidas.repo.dto.ClienteDTO"%>
<%@page import="uade.distribuidas.repo.dto.SolicitudDTO"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"    pageEncoding="ISO-8859-1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Editar Solicitud</title>
</head>
<body>
	<%
	SolicitudDTO s = (SolicitudDTO)request.getAttribute("solicitud");
	ClienteDTO c = s.getCliente();
	List<ItemSolicitudDTO> items  =  s.getItems();
	String id = String.valueOf(s.getId());
	String successMsg = "";
	if(!String.valueOf(request.getAttribute("successMsg")).equals("") && request.getAttribute("successMsg")!=null){
		successMsg=String.valueOf(request.getAttribute("successMsg"));
	}
	
	%>
	<form action="ControladorSolicitud?action=save" method="post">
	<table cellspacing="3" cellpadding="3" border="1" width="60%">	
	<input type="hidden" name="id" value="<%=id%>">
	<tr>
		<td><b>Numero Solicitud:</b> 
	  <td><input type="text" name="numero" value="<%=s.getNumero()%>"></td>
	</tr>
	<tr>
		<td><b>Fecha Envio:</b> 
	  <td><%=s.getFechaEnvio()%></td>
	</tr>
	<tr>
		<td><b>CUIL Cliente:</b> 
	  <td><%=c.getCuil()%></td>
	</tr>
	<tr>
		<td><b>Items:</b> 
	  <td><input type="text" size="50" name="items" value=""></td>
	</tr>
	<tr>
		<td colspan="1"><input type="submit" value="editar solicitud"></td>
		<td colspan="1">
		<strong style="color: green;">
		
		<%=successMsg%>
		
		</strong>
		</td>
	</tr>
	</table>
	</form>
</body>
</html>